package com.cdfy.service;

import com.cdfy.bean.UserBean;
import com.cdfy.dao.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {

    @Autowired
    UserMapper userMapper;

    public UserBean getUserInfo(String id) {
//        UserBean userBean = new UserBean();
//        if ("1".equals(id)) {
//            userBean.setId("1");
//            userBean.setUsername("hutao");
//            userBean.setPassword("123456");
//        }
        return userMapper.getUserInfo(id);
    }

}
